package com.xrc.T4;

public class Dog {
    private String name;//名字
    private Integer health = 100;//健康值
    private Integer love = 0;//亲密度
    private String strain;//品种

    public Dog() {
    }

    public Dog(String name, Integer health, Integer love, String strain) {
        this.name = name;
        this.health = health;
        this.love = love;
        this.strain = strain;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getHealth() {
        return health;
    }

    public void setHealth(Integer health) {
        this.health = health;
    }

    public Integer getLove() {
        return love;
    }

    public void setLove(Integer love) {
        this.love = love;
    }

    public String getStrain() {
        return strain;
    }

    public void setStrain(String strain) {

        this.strain = strain;
    }

    @Override
    public String toString() {
        String str="宠物的自白"+"\n我名字"+name+"\n健康值"+health+"亲密度"+love+"品种"+strain;
        return str;
    }

}
